package com.hd.binlog.core;

import com.github.shyiko.mysql.binlog.event.TableMapEventData;
import lombok.Getter;
import lombok.Setter;

/**
 * @author zhanghaidong
 * @version v1.0
 * @description
 * @date 2019/9/24
 */
@Setter
@Getter
public class MySqlTable {

    private long id;
    private String database;
    private String table;

    public MySqlTable(TableMapEventData data) {
        this.id = data.getTableId();
        this.database = data.getDatabase();
        this.table = data.getTable();
    }
}
